package xyz.xmh.pattern.j2ee.frontcontrollerpattern;

/**
 * 前端控制器
 *
 * @author admin
 */
public class FrontController {

    private final Dispatcher dispatcher;

    public FrontController() {
        this.dispatcher = new Dispatcher();
    }

    public void dispatchRequest(String request) {
        System.out.println("当前请求是：" + request);
        dispatcher.dispatch(request);
    }

}
